/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.tawriq.assignment2.question1.Polymorphism.Config;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.tawriq.assignment2.question1.Polymorphism.Employee;
import za.ac.cput.tawriq.assignment2.question1.Polymorphism.Invoice;
import za.ac.cput.tawriq.assignment2.question1.Polymorphism.Payable;
import za.ac.cput.tawriq.assignment2.question1.Polymorphism.SalariedEmployee;




/**
 *
 * @author Tawriq
 */
@Configurable
public class Config {
    @Bean
    public Invoice invoice()
    {
        return new Invoice();
    }
    
    @Bean
    public Payable payable()
    {
        return new Payable() {

            @Override
            public double getPaymentAmount() {
                throw new UnsupportedOperationException("Not supported yet.");
            }
        };
    }
   
    
}
